|
|
The On Sound event is triggered when a sound element encounters certain conditions.
Options
- Begun: Begun is triggered when sound starts to play.
- Looping: Looping is triggered every time a looped sound repeats the loop.
- Stream Done: Stream Done is triggered when the end of the file is loaded into memory. This will never be triggered on a looping sound.
- Stream Ready: Stream Ready is triggered when the first buffer is filled, or when all the buffers are filled if Fill All is selected.
- Stream Underflow: Stream Underflow is triggered when a buffer is not filled as expected. This event in conjunction with a Set Attribute First Buffer Size and Next Buffer Size would allow dynamic control of the buffers to prevent sound from being interrupted. This can be very useful for slow Internet connections or slow CD-ROM drives.
|